package com.wendy.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * date: 2022/6/22 10:37
 *
 * @author Wendy
 * @since JDK 1.8
 */
@Data
@Component
@RestController
@ConfigurationProperties(prefix = "test.wendy")
public class TestConfiguration {

  private String es;
  private String name;
  private Integer value;

  @GetMapping("/config")
  public String config(){
    return es+name+value;
  }

}
